package com.ysd.lis.controller.eq;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.eq.EqPollingStandard;
import com.ysd.lis.request.CommonPageDto;
import com.ysd.lis.request.eq.PollingStandardDto;
import com.ysd.lis.request.lab.SupplierDto;
import com.ysd.lis.service.eq.EqPollingStandardService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 设备管理-设备类型 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-07-31
 */
@RestController
@RequestMapping("/api/eq/eqPollingStandard")
public class EqPollingStandardController extends BaseController {

    @Autowired
    EqPollingStandardService eqPollingStandardService;

    @ApiOperation("查询")
    @GetMapping("/findPollingStandardList")
    public Result findPollingStandardList(CommonPageDto param) {
        return eqPollingStandardService.findPollingStandardList(param);
    }

    @ApiOperation("新增")
    @PostMapping("/addPollingStandard")
    public Result addPollingStandard(@RequestBody EqPollingStandard standard){
        return  eqPollingStandardService.addPollingStandard(standard);
    }

    @ApiOperation("修改")
    @PostMapping("/editPollingStandard")
    public Result editPollingStandard(@RequestBody EqPollingStandard standard){
        return eqPollingStandardService.editPollingStandard(standard);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeletePollingStandardList")
    public Result batchDeletePollingStandardList(@RequestBody PollingStandardDto dto){
        return  eqPollingStandardService.batchDeletePollingStandardList(dto);
    }

}
